<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="/jsp/bootstrap/top_css.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript">
	function dianJi() {
		$("#aform").submit();
	}
</script>
</head>
<body>
	<%@include file="/jsp/bootstrap/top_header.jsp"%>
	<%@include file="/jsp/bootstrap/top.jsp"%>
	<div class="content">
		<%@include file="/jsp/bootstrap/left.jsp"%>
		<div class="mainbar">
			<%@include file="/jsp/bootstrap/right_header.jsp"%>
			<div class="clearfix">
				<div class="content-right">
					<div class="content-r-pic_w">
						<div style="margin: 8px auto auto 12px; margin-top: 6px">
							<span class="page_title">商品管理</span>
						</div>
					</div>
					<div class="content-text">
						<form id="aform"
							action="${pageContext.request.contextPath}/goods/goods_list.action"
							method="post">
							<div class="square-o-top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0"
									style="font-size: 14px; font-weight: bold; font-family:"黑体";">
									<tr>
										<td>供应商:</td>
										<td><select class="kuan" name="goodsType.supplier.name">
												<option value="">----请-选-择----</option>
												<option value="成都小食品批发总公司">成都小食品批发总公司</option>
												<option value="中关村鼎好302号摊">中关村鼎好302号摊</option>
												<option value="北京特产批发总公司">北京特产批发总公司</option>
												<option value="中腾建华楼下小卖店">中腾建华楼下小卖店</option>
										</select></td>
										<td height="30">商&nbsp;品&nbsp;名</td>
										<td><input type="text" size="14" name="name" /></td>
										<td>生产厂家</td>
										<td><input type="text" size="14" name="producer" /></td>
										<td>单&nbsp;&nbsp;&nbsp;&nbsp;位</td>
										<td><input type="text" size="14" name="unit" /></td>
									</tr>
									<tr>
										<td><a href="javascript:dianJi()"> <img
												src="${pageContext.request.contextPath}/images/can_b_01.gif"
												border="0" />
										</a><a href="#"><img
												src="${pageContext.request.contextPath}/images/can_b_02.gif"
												border="0" /> </a></td>
									</tr>
								</table>
							</div>
							<!--"square-o-top"end-->
							<div class="square-order">
								<table width="100%" border="1" cellpadding="0" cellspacing="0">
									<tr align="center"
										style="background: url(${pageContext.request.contextPath}/images/table_bg.gif) repeat-x;">
										<td width="12%" height="30">供应商</td>
										<td width="12%">商品名</td>
										<td width="12%">生产厂家</td>
										<td width="12%">产地</td>
										<td width="12%">进货价格</td>
										<td width="12%">销售价格</td>
										<td width="12%">单位</td>
										<td width="16%">操作</td>
									</tr>
									<c:forEach items="${goodsList }" var="g">
										<tr align="center" bgcolor="#FFFFFF">
											<td width="13%" height="30">${g.goodsType.supplier.name}</td>
											<td>${g.name}</td>
											<td>${g.producer}</td>
											<td>${g.origin}</td>
											<td align="right">${g.inprice }&nbsp;元&nbsp;</td>
											<td align="right">${g.outprice }&nbsp;元&nbsp;</td>
											<td>${g.unit}</td>
											<td><img
												src="${pageContext.request.contextPath}/images/icon_3.gif" />
												<span style="line-height: 12px; text-align: center;">
													<a href="#" class="xiu">修改</a>
											</span> <img
												src="${pageContext.request.contextPath}/images/icon_04.gif" />
												<span style="line-height: 12px; text-align: center;">
													<a href="#" class="xiu">删除</a>
											</span></td>
										</tr>
									</c:forEach>
								</table>
							</div>
						</form>
					</div>
					<div class="content-bbg"></div>
				</div>
			</div>
		</div>
	</div>
	<%@include file="/jsp/bootstrap/bottom.jsp"%>
	<%@include file="/jsp/bootstrap/bottom_JS.jsp"%>
</body>
</html>